package com.quanyan.user.service;

import com.quanyan.user.model.db.TbImDetails;
import com.quanyan.user.model.vo.response.RespHuanxinObj;

/**
 * Created by zhang on 16/12/1.
 */
public interface UserIMService {

    /**
     * 获取环信Token
     * @param huanxinClientId
     * @param huanxinClientSecret
     * @return
     */
    String getHuanxinToken(String huanxinClientId, String huanxinClientSecret);

    /**
     * 注册环信用户
     * @param userName
     * @param password
     * @param uid
     * @return
     */
    void registerHuanxinUser(String userName, String password,Integer uid);

    /**
     * 添加用户环信信息
     * @param huanxinNickName   环信用户名
     * @param password  环信密码
     * @param uid   用户ID
     * @return  TbImDetails 环信详情
     */
    TbImDetails addImDetails(String huanxinNickName,String password,Integer uid);
}
